﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Cloud.Core.Model.Promotion
{
    public class UserCouponBag
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public ulong Id { get; set; }

        /// <summary>
        /// 用户标识
        /// </summary>
        public string OpenId { get; set; }


        public ulong PromotionUsersId { get; set; }

        /// <summary>
        /// 推广表id
        /// </summary>

        public ulong PromotionsId { get; set; }
        /// <summary>
        /// 奖券名称 类型为商品券是为商品名
        /// </summary>

        public string CouponName { get; set; }
        /// <summary>
        /// 奖券code   折扣券 商品券  现金券 
        /// </summary>

        public string CouponCode { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>

        public DateTime? ExpirationDate { get; set; }

        /// <summary>
        /// 开奖时间
        /// </summary>
        public DateTime? LuckyDrawDate { get; set; }
        /// <summary>
        /// 奖券个数 默认1
        /// </summary>

        public int CouponCount { get; set; }
        /// <summary>
        /// 奖券金额  红包是为金额   折扣券的时候为折扣  现金券为金额   商品券为1  红包时为红包金额
        /// </summary>

        public decimal CouponAmount { get; set; }


        public string PromotionUserType { get; set; }

        public DateTime? IsrtDt
        {
            get; set;
        }

        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? UpdtDt
        {
            get; set;
        }
        public LuckyDrawCouponType LuckyDrawCouponType { get; set; }


        public  int Status { get; set; }
    }
}
